//
//  Person.h
//  05-HomeWork
//
//  Created by dllo on 16/7/8.
//  Copyright © 2016年 daming. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
@property (nonatomic, retain) NSString *name;
@property (nonatomic, assign) NSInteger age;
@property (nonatomic, retain) NSString *sex;
- (instancetype)initWithName:(NSString *)name age:(NSInteger)age sex:(NSString *)sex;
- (NSString *)description;
- (NSComparisonResult)deSortedByName:(Person *)person;
- (NSComparisonResult)deSortedByAge:(Person *)person;
- (NSComparisonResult)deSortedBySex:(Person *)person;
@end
